
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">部门借款余额</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action="" class="form-inline" id="form1">
       <table class="row-margin-top tab-content table-bordered table" border="1">
          <tr>
        <td style="min-width: 120px;width: 120px"><label for="" class="form-label">姓名：</label></td>
            <td>  <div class="input-group">
                            <input id="area_id" type="text"
                                   class="form-control" value="" style="min-width: 300px;width: 300px">
                            <div class="input-group-btn">
                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                </ul>
                            </div>
                        </div>
                    </div>
                    <a href="javascript:;" id="select_area" class="btn btn-primary btn-sm">选择</a>(支持模糊查询)</td>
          <td style="min-width: 120px;width: 120px"><label for="" class="form-label">职员状态：</label></td>
            <td>
              <select name="" id="" class="form-control select">
                <option value="0">请选择</option>
                <option value="1">在职</option>
                <option value="2">离职</option>
              </select>
            </td>
   		 </tr>
        <tr>
           <td colspan="6" class="text-center">
           <button class="btn btn-info query" >查询</button>
           <button class="btn btn-info emptyIf" type="reset" id="reset">清空查询条件</button>
           <button class="btn btn-info LendExcel" type="button">导出Excel</button>
            </td>
          </tr>
      </table>
    
      <table class="table table-striped table-bordered table-hover bud_hei text-center">
         </tr>
           <tr class="info text-center">
            <th class="text-center">NO.</th>
            <th class="text-center trTotal2">姓名</th>
            <th class="text-center trTotal2">借款金额(元)</th>
            <th class="text-center">所属部门</th>
            <th class="text-center">职员状态</th>
          </tr>
         	<tr>
				<td>1</td>
				<td>梁景滔</td>
        <td class="text-right"><a href="{:url('Other/department_borrowM_apply')}" class="ObjectNum">17700</a></td>
        <td>华北大区</td>
       	<td>在职</td>
        </tr>
          <tr>
        <td>2</td>
        <td>梁景滔</td>
        <td class="text-right"><a href="{:url('Other/department_borrowM_apply')}" class="ObjectNum">500</a></td>
        <td>华北大区</td>
        <td>在职</td>
        </tr>
          <tr>
        <td>3</td>
        <td>梁景滔</td>
        <td class="text-right"><a href="{:url('Other/department_borrowM_apply')}" class="ObjectNum">100</a></td>
        <td>华北大区</td>
        <td>在职</td>
        </tr>
      </table>
        <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>

    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <!-- <script src="__STATIC__/layout/js/contabs_sub.js"></script> -->
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
      
        $(document).ready(function(){
          var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);

/*清空查询条件*/
            $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
           })
        })

          var jieshou = $("#area_id");
 sousuo(jieshou);
       function sousuo(id){
            id.bsSuggest({
            allowNoKeyword: false, //是否允许无关键字时请求数据
            multiWord: true, //以分隔符号分割的多关键字支持
            separator: ",", //多关键字支持时的分隔符，默认为空格
            getDataMethod: "url", //获取数据的方式，总是从 URL 获取
            url: 'http://unionsug.baidu.com/su?p=3&t=' + (new Date()).getTime() + '&wd=',
            /*优先从url ajax 请求 json 帮助数据，注意最后一个参数为关键字请求参数*/
            jsonp: 'cb',
            /*如果从 url 获取数据，并且需要跨域，则该参数必须设置*/
            processData: function (json) { // url 获取数据时，对数据的处理，作为 getData 的回调函数
                var i, len, data = {
                    value: []
                };
                if (!json || !json.s || json.s.length === 0) {
                    return false;
                }

                // console.log(json);
                len = json.s.length;

                jsonStr = "{'value':[";
                for (i = 0; i < len; i++) {
                    data.value.push({
                        word: json.s[i]
                    });
                }
                data.defaults = 'baidu';

                //字符串转化为 js 对象
                return data;
            }
        });

          }

    </script>
</body>

</html>
